package cn.dansj.common.request.configure;

import cn.dansj.common.processor.TargetType;
import cn.dansj.common.processor.meta.WriteToResource;
import cn.dansj.common.request.resolver.RequestParamResolver;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.List;

@WriteToResource(type = TargetType.Imports, keyProperty = "org.springframework.boot.autoconfigure.AutoConfiguration")
public class ResolverConfiguration implements WebMvcConfigurer {
    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
        resolvers.add(new RequestParamResolver());
    }
}
